Hi <%= @teaching.user.name %>,

  <%= @user.name %> of group <%= @group.name %> has just marked a file as final<%= @upload.deadline.nil? ? '' : " for deadline \"#{@upload.deadline.title}\"" %>.

You can see the file at:
<%= "http://#{@host}#{upload_path(@teaching.project_id, @teaching.id, @group.id, @upload.id)}" %>
or download it from:
<%= "http://#{@host}#{@upload.url}" %>
